Skip to content

fix(ui): auto-add newly created boards#9193

Merged
lstein merged 5 commits into
invoke-ai:mainfrom
YUHAO-corn:yuhao/fix-new-board-auto-add-9169
May 22, 2026
Merged

fix(ui): auto-add newly created boards#9193
lstein merged 5 commits into
invoke-ai:mainfrom
YUHAO-corn:yuhao/fix-new-board-auto-add-9169

Conversation

@YUHAO-corn
Copy link
Copy Markdown
Contributor

@YUHAO-corn YUHAO-corn commented May 16, 2026

Summary

Fixes a gallery board UX inconsistency: when "Auto-Assign Board on Click" is enabled, creating a new board now updates the auto-add board to the newly-created board, matching the behavior of clicking an existing board. Previously, the UI selected the new board but generated images still saved to the previous auto-add board until the user clicked the board again.

This also adds a focused regression test for the created-board action sequence.

Related Issues / Discussions

Closes #9169

QA Instructions

Validated locally with:

  • pnpm -C invokeai/frontend/web test:run src/features/gallery/components/Boards/BoardsList/AddBoardButton.test.tsx
  • pnpm -C invokeai/frontend/web test:run
  • pnpm -C invokeai/frontend/web lint:tsc
  • pnpm -C invokeai/frontend/web lint:eslint
  • pnpm -C invokeai/frontend/web lint:prettier
  • pnpm -C invokeai/frontend/web exec eslint src/features/gallery/components/Boards/BoardsList/AddBoardButton.tsx src/features/gallery/components/Boards/BoardsList/AddBoardButton.test.tsx
  • pnpm -C invokeai/frontend/web exec prettier --check src/features/gallery/components/Boards/BoardsList/AddBoardButton.tsx src/features/gallery/components/Boards/BoardsList/AddBoardButton.test.tsx

Merge Plan

No special merge handling needed.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration N/A - no redux slice changes
  • Documentation added / updated (if applicable) N/A
  • Updated What's New copy (if doing a release after this PR) N/A

@github-actions github-actions Bot added the frontend PRs that change frontend files label May 16, 2026
@YUHAO-corn YUHAO-corn force-pushed the yuhao/fix-new-board-auto-add-9169 branch from 392dc16 to e770bb0 Compare May 16, 2026 17:18
@lstein lstein self-assigned this May 18, 2026
@lstein lstein added the v6.13.x label May 18, 2026
@lstein lstein moved this to 6.13.x Theme: MODELS in Invoke - Community Roadmap May 18, 2026
Copy link
Copy Markdown
Collaborator

@lstein lstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One minor change requested. Since we are no longer requiring a click to select the board, please change the translation of autoAssignBoardOnClick to "Auto-Assign Board" in invokeai/frontend/web/public/locales/en.json

@YUHAO-corn
Copy link
Copy Markdown
Contributor Author

Addressed the requested label change.

What changed:

  • Updated gallery.autoAssignBoardOnClick in invokeai/frontend/web/public/locales/en.json to Auto-Assign Board.
  • Merged latest origin/main into this branch to clear the behind state.

Validation:

  • pnpm --dir invokeai/frontend/web test:run src/features/gallery/components/Boards/BoardsList/AddBoardButton.test.tsx — 4/4 passed
  • pnpm --dir invokeai/frontend/web exec prettier --check public/locales/en.json
  • git diff --check

I also ran an independent subagent review for the locale follow-up; it found no blocking or non-blocking issues.

Copy link
Copy Markdown
Collaborator

@lstein lstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you for your contribution!

@lstein lstein enabled auto-merge (squash) May 22, 2026 01:31
@lstein lstein merged commit b4224d9 into invoke-ai:main May 22, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files v6.13.x

Projects

Status: 6.13.x Theme: MODELS

Development

Successfully merging this pull request may close these issues.

[bug]: Newly generated images go into previous board instead of newly-created one

2 participants